package book;

import book.Book;

public class BookList {
    private Book[] books;
    private int usedSize;
    public BookList(){

        this.books=new Book[10];
       this.books[0]=new Book("三国演义1","xiaohong",  15,"文学");
       this.books[1]=new Book("三国演义2","libai",  55,"小品");
       this.books[2]=new Book("三国演义3","罗贯中",  45,"小说");
       usedSize=3;


    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
    public Book getBook(int pos){
        return books[pos];
    }
    public void setBooks(int pos,Book book){
        books[pos]=book;
    }

}
